import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: '/UserServiceAgreement'
    // redirect: '/QqLogin'
  },
  {
    path: '/UserServiceAgreement', //temper用户协议
    name: 'UserServiceAgreement',
    component: () => import('../views/UserServiceAgreement.vue')
  },
  // {
  //   path: '/ServiceAgreement', //心动30S服务协议
  //   name: 'ServiceAgreement',
  //   component: () => import('../views/ServiceAgreement.vue')
  // },
  {
    path: '/PrivacyAgreement', //temper隐私协议
    name: 'PrivacyAgreement',
    component: () => import('../views/PrivacyAgreement.vue')
  },
  {
    path: '/Cancellation', //Temper注销账户须知
    name: 'Cancellation',
    component: () => import('../views/Cancellation.vue')
  },
  // {
  //   path: '/CommonProblem', //常见问题
  //   name: 'CommonProblem',
  //   component: () => import('../views/CommonProblem.vue')
  // },
  {
    path: '/Level', //等级
    name: 'Level',
    component: () => import('../views/Level.vue'),
    meta:{
      title:'等级'
    }
  },
  {
    path: '/LevelRules', //等级规则
    name: 'LevelRules',
    component: () => import('../views/LevelRules.vue'),
    meta:{
      title:'等级规则'
    }
  },
  {
    path: '/Recharge', //充值
    name: 'Recharge',
    component: () => import('../views/Recharge.vue'),
    meta:{
      title:'充值'
    }
  },
  {
    path: '/GoldRecord', //金币记录
    name: 'GoldRecord',
    component: () => import('../views/GoldRecord.vue'),
    meta:{
      title:'金币记录'
    }
  },
  {
    path: '/Tixian', //提现
    name: 'Tixian',
    component: () => import('../views/Tixian.vue'),
    meta:{
      title:'叶子'
    }
  },
  {
    path: '/test', //提现
    name: 'test',
    component: () => import('../views/test.vue'),
    meta:{
      title:'测试'
    }
  },
  {
    path: '/yeziRecord', //叶子记录
    name: 'yeziRecord',
    component: () => import('../views/yeziRecord.vue'),
    meta:{
      title:'记录'
    }
  },
  {
    path: '/WithdrawalWay', //提现方式
    name: 'WithdrawalWay',
    component: () => import('../views/WithdrawalWay.vue'),
    meta:{
      title:'选择提现方式'
    }
  },
  {
    path: '/WithdrawalBack', //提现反馈
    name: 'WithdrawalBack',
    component: () => import('../views/WithdrawalBack.vue'),
    meta:{
      title:'提示'
    }
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router